﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAL;
namespace BUS
{
    public class MobileBL
    {
        #region[Mobile_SelectALL]
        public static MobileDAL dal = new MobileDAL();
        public List<DTO.MobileDTO> Mobile_SelectALL()
        {
            return dal.Mobile_SelectALL();
        }
        #endregion

        #region[Mobile_SelectByName]
        public List<DTO.MobileDTO> Mobile_SelectByName(String name)
        {
            return dal.Mobile_SelectByName(name);
        }
        #endregion

        #region[Mobile_SelectByID]
        public DTO.MobileDTO Mobile_SelectByID(int id)
        {
            return dal.Mobile_SelectByID(id);
        }
        #endregion

        #region[Mobile_SelectByBrand]
        public List<DTO.MobileDTO> Mobile_SelectByBrand(string brand)
        {
            return dal.Mobile_SelectByBrand(brand);
        }
        #endregion

        #region [Mobile_Insert]
        public bool Mobile_Insert(DTO.MobileDTO mb)
        {
            return dal.Mobile_Insert(mb);
        }
        #endregion

        #region [Mobile_Insert_1]
        public bool Mobile_Insert_1(int mobileid, int numberadd)
        {
            return dal.Mobile_Insert_1(mobileid, numberadd);
        }
        #endregion

        #region [Mobile_Update]
        public bool Mobile_Update(DTO.MobileDTO mb)
        {
            return dal.Mobile_Update(mb);
        }
        #endregion

        #region [Mobile_Delete]
        public bool Mobile_DeleteByID(DTO.MobileDTO mb)
        {
            return dal.Mobile_DeleteByID(mb);
        }
        #endregion

    }
}
